package weifei.live.simulation.im.cmd;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;


@Data
public class Bullet
{
    private Integer senderId;
    private Integer targetId;       // 目标ID，用户直播间ID，或者 群聊直播间ID
    private String content;
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date sendTime;

    public Bullet(int senderId, int targetId, String content, Date sendTime)
    {
        this.senderId = senderId;
        this.targetId = targetId;
        this.content = content;
        this.sendTime = sendTime;
    }
}

